import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		pop: false, //登录弹出框
		user: false
	},
	mutations: {
		//修改登录状态
		isLogin(state) {
			state.user = true
		},
		//关闭全局登录弹窗
		closePop(state) {
			state.pop = false
		},
		//打开全局登录弹窗
		openPop(state) {
			state.pop = true
		}

	},
	actions: {},
	getters: {}
})

export default store
